package com.tao.erp.procurement.pojo;

import com.tao.erp.goods.pojo.Goods;
import com.tao.erp.utils.format.FormatUtil;

public class OrderDetail {
	private Integer uuid;
	private Integer goodsuuid;
	private Double price;
	private Integer orderuuid;
	private Integer num;
	private Integer surplus=0;
	private Goods goods;
	private String totalprice;
	private String priceView;
	public Integer getUuid() {
		return uuid;
	}
	public void setUuid(Integer uuid) {
		this.uuid = uuid;
	}
	public Integer getGoodsuuid() {
		return goodsuuid;
	}
	public void setGoodsuuid(Integer goodsuuid) {
		this.goodsuuid = goodsuuid;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
		this.priceView=FormatUtil.formatMoney(price);
	}
	public Integer getOrderuuid() {
		return orderuuid;
	}
	public void setOrderuuid(Integer orderuuid) {
		this.orderuuid = orderuuid;
	}
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
		this.totalprice=FormatUtil.formatMoney((this.price)*num);
	}
	public Integer getSurplus() {
		return surplus;
	}
	public void setSurplus(Integer surplus) {
		this.surplus = surplus;
	}
	public Goods getGoods() {
		return goods;
	}
	public void setGoods(Goods goods) {
		this.goods = goods;
	}
	public String getTotalprice() {
		return totalprice;
	}
	public void setTotalprice(String totalprice) {
		this.totalprice = totalprice;
	}
	public String getPriceView() {
		return priceView;
	}
	public void setPriceView(String priceView) {
		this.priceView = priceView;
	}
	@Override
	public String toString() {
		return "OrderDetail [uuid=" + uuid + ", goodsuuid=" + goodsuuid
				+ ", price=" + price + ", orderuuid=" + orderuuid + ", num="
				+ num + ", surplus=" + surplus + ", goods=" + goods
				+ ", totalprice=" + totalprice + ", priceView=" + priceView
				+ "]";
	}
	
}
